/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;

import lombok.*;

import javax.validation.constraints.Size;

/**
 * 题库资源Entity 题库资源
 * @author admin
 * @version 2020-09-28 11:23:45
 */
@TableName(value = "t_que_resource")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class QueResource extends IdEntity<QueResource> {

	private static final long serialVersionUID = 1L;
	/** F_QUEID que_id  :  题目ID */
	public static final String F_QUEID = "queId";
	/** F_TYPE type  :  资源类型 */
	public static final String F_TYPE = "type";
	/** F_TITLE title  :  资源标题 */
	public static final String F_TITLE = "title";
	/** F_CONTENT content  :  资源内容 */
	public static final String F_CONTENT = "content";
	/** F_URL url  :  资源地址 */
	public static final String F_URL = "url";


	/** queId 题目ID */@Size(max=50)
	@TableField("que_id")
	private String queId;
	/** type 资源类型 */

	private Long type;
	/** title 资源标题 */@Size(max=200)

	private String title;
	/** content 资源内容 */@Size(max=65535)

	private String content;
	/** url 资源地址 */@Size(max=2000)

	private String url;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
